package com.sl.biz.modular.office.controller;

import com.sl.biz.modular.office.dao.domain.entity.OfficeRecordContentDO;
import com.sl.biz.modular.office.service.OfficeRecordContentBizService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/office_record/content")
@RequiredArgsConstructor
public class OfficeRecordContentController {

    private final OfficeRecordContentBizService officeRecordContentBizService;

    @PostMapping("/save")
    public Boolean save(@RequestBody OfficeRecordContentDO officeRecord) {
        return officeRecordContentBizService.save(officeRecord);
    }


    @PostMapping("/get_by_office_id")
    public OfficeRecordContentDO getByOfficeId(@RequestBody OfficeRecordContentDO officeRecordDO) {
        return officeRecordContentBizService.getByOfficeId(officeRecordDO);
    }
}
